package com.gcit.seniorWish.web.common.persistence.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 报考学校信息表（提前录取（师范）、提前批次（普高）、指标生录取、第一批次、第二批次、第三批次、第四批次、第五批次）
 * </p>
 *
 * @author gaozhichang
 * @since 2018-03-16
 */
@TableName("enroll_school")
public class EnrollSchool extends Model<EnrollSchool> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 报考学校代号
	 */
	@TableField("school_code")
	private String schoolCode;
	/**
	 * 报考学校名称
	 */
	@TableField("school_name")
	private String schoolName;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time",fill=FieldFill.INSERT)
	private Date createTime;
	/**
	 * 创建者id
	 */
	@TableField(value="create_by",fill=FieldFill.INSERT)
	private String createBy;
	/**
	 * 修改时间
	 */
	@TableField(value="modify_time",fill=FieldFill.UPDATE)
	private Date modifyTime;
	/**
	 * 修改者id
	 */
	@TableField(value = "modify_by",fill= FieldFill.UPDATE)
	private String modifyBy;
	/**
	 * 删除标记
	 */
	@TableField(value="del_flag",fill=FieldFill.INSERT)
	@TableLogic
	private Integer delFlag;

	/**
	 * 参与的报考批次类型列表(用逗号分开)
	 */
	@TableField(exist = false)
	private String batchTypes;

	/**
	 * 参与的报考批次类型名称（逗号分开）
	 */
	@TableField(exist=false)
	private String batchTypeNames;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSchoolCode() {
		return schoolCode;
	}

	public void setSchoolCode(String schoolCode) {
		this.schoolCode = schoolCode;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public String getBatchTypes() {
		return batchTypes;
	}

	public void setBatchTypes(String batchTypes) {
		this.batchTypes = batchTypes;
	}

	public String getBatchTypeNames() {
		return batchTypeNames;
	}

	public void setBatchTypeNames(String batchTypeNames) {
		this.batchTypeNames = batchTypeNames;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "EnrollSchool{" +
				"id='" + id + '\'' +
				", schoolCode='" + schoolCode + '\'' +
				", schoolName='" + schoolName + '\'' +
				", createTime=" + createTime +
				", createBy='" + createBy + '\'' +
				", modifyTime=" + modifyTime +
				", modifyBy='" + modifyBy + '\'' +
				", delFlag=" + delFlag +
				", batchTypes='" + batchTypes + '\'' +
				'}';
	}
}
